﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="Artezio.SP.WorkflowActivities.WorkflowTest.Workflow" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap2010:WorkflowViewState.IdRef="Artezio.SP.WorkflowActivities.WorkflowTest.Workflow_1"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:msdad="clr-namespace:Microsoft.SharePoint.DesignTime.Activities.Design;assembly=Microsoft.SharePoint.DesignTime.Activities.Design"
 xmlns:p="http://schemas.microsoft.com/workflow/2012/07/xaml/activities"
 xmlns:p1="wf://workflow.windows.net/$Activities"
 xmlns:p2="wf://workflow.windows.net/$Current/$Activities/Artezio.SP.WorkflowActivities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Text</x:String>
      <x:String>Microsoft.Activities</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.Activities</AssemblyReference>
      <AssemblyReference>Microsoft.Activities.Design</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.DesignTime.Activities</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>Artezio.SP.WorkflowActivities</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
    <Sequence.Variables>
      <Variable x:TypeArguments="x:String" Name="currentUser" />
      <Variable x:TypeArguments="x:Int32" Name="roleId" />
      <Variable x:TypeArguments="x:Int32" Name="currentUserId" />
      <Variable x:TypeArguments="p:DynamicValue" Name="currentItem" />
      <Variable x:TypeArguments="x:String" Name="itemUrl" />
    </Sequence.Variables>
    <p1:LookupWorkflowContextProperty sap2010:WorkflowViewState.IdRef="LookupWorkflowContextProperty_2" PropertyName="InitiatorUserId">
      <p1:LookupWorkflowContextProperty.Result>
        <OutArgument x:TypeArguments="x:String">
          <mca:CSharpReference x:TypeArguments="x:String">currentUser</mca:CSharpReference>
        </OutArgument>
      </p1:LookupWorkflowContextProperty.Result>
    </p1:LookupWorkflowContextProperty>
    <p1:LookupSPPrincipalId AddToUserInfoList="{x:Null}" sap2010:WorkflowViewState.IdRef="LookupSPPrincipalId_1">
      <p1:LookupSPPrincipalId.Result>
        <OutArgument x:TypeArguments="x:Int32">
          <mca:CSharpReference x:TypeArguments="x:Int32">currentUserId</mca:CSharpReference>
        </OutArgument>
      </p1:LookupSPPrincipalId.Result>
      <p1:LookupSPPrincipalId.UserName>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">currentUser</mca:CSharpValue>
        </InArgument>
      </p1:LookupSPPrincipalId.UserName>
    </p1:LookupSPPrincipalId>
    <p1:LookupSPListItem ItemGuid="{x:Null}" Properties="{x:Null}" sap2010:WorkflowViewState.IdRef="LookupSPListItem_1">
      <p1:LookupSPListItem.ItemId>
        <InArgument x:TypeArguments="x:Int32">
          <p:ExpressionContainerValue x:TypeArguments="x:Int32">
            <p1:GetCurrentItemId />
          </p:ExpressionContainerValue>
        </InArgument>
      </p1:LookupSPListItem.ItemId>
      <p1:LookupSPListItem.ListId>
        <InArgument x:TypeArguments="s:Guid">
          <p:ExpressionContainerValue x:TypeArguments="s:Guid">
            <p1:GetCurrentListId />
          </p:ExpressionContainerValue>
        </InArgument>
      </p1:LookupSPListItem.ListId>
      <p1:LookupSPListItem.Result>
        <OutArgument x:TypeArguments="p:DynamicValue">
          <mca:CSharpReference x:TypeArguments="p:DynamicValue">currentItem</mca:CSharpReference>
        </OutArgument>
      </p1:LookupSPListItem.Result>
    </p1:LookupSPListItem>
    <p:GetODataProperties DisplayName="GetDynamicValueProperties" sap2010:WorkflowViewState.IdRef="GetODataProperties_1">
      <p:GetODataProperties.Source>
        <InArgument x:TypeArguments="p:DynamicValue">
          <mca:CSharpValue x:TypeArguments="p:DynamicValue">currentItem</mca:CSharpValue>
        </InArgument>
      </p:GetODataProperties.Source>
      <scg:Dictionary x:TypeArguments="x:String, OutArgument">
        <OutArgument x:TypeArguments="x:String" x:Key="__metadata/uri">
          <mca:CSharpReference x:TypeArguments="x:String">itemUrl</mca:CSharpReference>
        </OutArgument>
      </scg:Dictionary>
    </p:GetODataProperties>
    <p2:GetRoleDefinitionId WebUrl="{x:Null}" RoleName="Full Control">
      <p2:GetRoleDefinitionId.RoleDefinitionId>
        <OutArgument x:TypeArguments="x:Int32">
          <mca:CSharpReference x:TypeArguments="x:Int32">roleId</mca:CSharpReference>
        </OutArgument>
      </p2:GetRoleDefinitionId.RoleDefinitionId>
      <sap2010:WorkflowViewState.IdRef>GetRoleDefinitionId_1</sap2010:WorkflowViewState.IdRef>
    </p2:GetRoleDefinitionId>
    <p2:AddRoleAssignment BreakRoleInheritance="True" CopyRoleAssigments="True" sap2010:WorkflowViewState.IdRef="AddRoleAssignment_1">
      <p2:AddRoleAssignment.PrincipalId>
        <InArgument x:TypeArguments="x:Int32">
          <mca:CSharpValue x:TypeArguments="x:Int32">currentUserId</mca:CSharpValue>
        </InArgument>
      </p2:AddRoleAssignment.PrincipalId>
      <p2:AddRoleAssignment.RoleDefinitionId>
        <InArgument x:TypeArguments="x:Int32">
          <mca:CSharpValue x:TypeArguments="x:Int32">roleId</mca:CSharpValue>
        </InArgument>
      </p2:AddRoleAssignment.RoleDefinitionId>
      <p2:AddRoleAssignment.SecurableObjectApiPath>
        <InArgument x:TypeArguments="x:String">
          <mca:CSharpValue x:TypeArguments="x:String">itemUrl</mca:CSharpValue>
        </InArgument>
      </p2:AddRoleAssignment.SecurableObjectApiPath>
    </p2:AddRoleAssignment>
    <sads:DebugSymbol.Symbol>d2BEOlxTaGFyZVBvaW50UHJvamVjdHNcSGVscERlc2tDb2RlcGxleFxzcDIwMTN3b3JrZmxvd2FjdGl2aXRpZXNcdHJ1bmtcV29ya2Zsb3dUZXN0XFdvcmtmbG93LnhhbWwZLAOCAQ4CAQE0BTooAgFCOwVGHgIBNUcFWxsCASxcBWccAgEfaAVvHgIBF3AFgAEcAgECNws3XAIBRDR2NIcBAgFDQwtDVAIBPD4LPl0CATZRC1MoAgE0WAtYYgIBLkoLTCgCAS1kC2RYAgEmXwtfWgIBIGg4aEYCAR5rC2tWAgEYcwtzVQIBEXBKcFACARB9C31QAgEKeAt4TgIBBHAwcDYCAQNSDVIkAwE0AUsNSyQDAS0B</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="LookupWorkflowContextProperty_2" sap:VirtualizedContainerService.HintSize="247,68">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <scg:Dictionary x:TypeArguments="x:String, msdad:ViewStateNameValue" x:Key="SPLocalizedDisplayNames">
              <msdad:ViewStateNameValue x:Key="PropertyName" DisplayName="Initiator" Value="InitiatorUserId" />
            </scg:Dictionary>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="LookupSPPrincipalId_1" sap:VirtualizedContainerService.HintSize="247,68" />
      <sap2010:ViewStateData Id="LookupSPListItem_1" sap:VirtualizedContainerService.HintSize="247,89">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <scg:Dictionary x:TypeArguments="x:String, msdad:ViewStateNameValue" x:Key="SPLocalizedDisplayNames">
              <msdad:ViewStateNameValue x:Key="ItemId" DisplayName="(current item)" Value="$CurrentItemId" />
              <msdad:ViewStateNameValue x:Key="ListId" DisplayName="(current list)" Value="$CurrentListId" />
            </scg:Dictionary>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="GetODataProperties_1" sap:VirtualizedContainerService.HintSize="247,92">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:String x:Key="Properties.SelectedEntityType">SharePoint_ListItem</x:String>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="GetRoleDefinitionId_1" sap:VirtualizedContainerService.HintSize="247,22" />
      <sap2010:ViewStateData Id="AddRoleAssignment_1" sap:VirtualizedContainerService.HintSize="247,22" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="269,685">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Artezio.SP.WorkflowActivities.WorkflowTest.Workflow_1" sap:VirtualizedContainerService.HintSize="309,765" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>